package com.qf.day03.loop;

public class Demo10 {
    public static void main(String[] args) {

        long sum = 0;
        for (int i = 1; i <= 10; i++) {
            long mullty = 1;
            for (int j = 0; j < i; j++) {
                mullty = mullty * 10;
            }
            long a = mullty - 1;
            sum = sum + a;
        }
        System.out.println(sum);
    }
}
